function new_center = comput_center(X_data, label)
%传入新的分组，计算他们的聚类中心
[~, dim] = size(X_data);
class_num = max(label);
new_center = zeros(class_num, dim);
for i = 1:class_num
    new_center(i,:) = mean(X_data(label == i,:), 1);
end
end